package com.wxf.demo1;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;

@SpringBootApplication
public class Demo1Application {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication();
        springApplication.addListeners(new ApplicationPidFileWriter("PID.txt"));
        SpringApplication.run(Demo1Application.class, args);
    }

}
